<!DOCTYPE html>
<html lang="en"   xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="~{/fragment/header :: header-nav}"></div>
    <div th:replace="~{/fragment/header :: header}"></div>

    <div th:replace="~{/fragment/header :: header-css}"></div>




</head>
<body>
<div class="container">
    <table class="table table-danger">
        <a th:href="@{/order/insert}" class="btn btn-success">新增</a>
        <thead>
            <tr>
                <th scope="row">序号</th>
                <th>入场时间</th>
                <th>离场时间</th>
                <th>缴费金额</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        <tr th:each="order : ${list}">
            <td th:text="${order.id}"></td>
            <td th:text="${#dates.format(order.inDateTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="${#dates.format(order.outDateTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="${order.price}"></td>
            <td>
                <a th:href="@{/order/edit/{id}(id=${order.id})}" class="btn btn-info">修改</a>
                <a th:href="@{/order/detail/{id}(id=${order.id})}">详情</a>
                <a th:href="@{/order/delete/{id}(id=${order.id})}" class="btn btn-danger">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div th:replace="~{/fragment/footer :: footer}"></div>
<div th:replace="~{/fragment/header :: header-js}"></div>

</body>
</html>